<?
$imagePaths=Array(

"images/photos/2108/nepalchandra1.JPG",
"images/photos/356/BK Nitin193.jpg",
"images/photos/220/BK Savita244.jpg",
"images/photos/1830/RUP.jpg",
"images/photos/330/775462_f520.jpg",
"images/photos/1321/1321.JPG",
"images/photos/1487/1-22-2010 10;01;55 AM.JPG",
"images/photos/973/973.JPG",
"images/photos/1920/DSC_5626_08_Aug_2010_240.jpg",
"images/photos/260/BK Vasa345.jpg",
"images/photos/1277/1277.JPG",
"images/photos/1512/Prasanta.JPG",
"images/photos/137/BK Pavansingh134.jpg",
"images/photos/976/976.JPG",
"images/photos/1810/DSC00075.JPG",
"images/photos/679/BK Amrish557.jpg",
"images/photos/522/BK Manish448.jpg",
"images/photos/1488/1-22-2010 10;26;53 AM.JPG",
"images/photos/748/Winter.jpg",
"images/photos/182/BK Khairati260.jpg",
"images/photos/114/BK Chandrasekhar103.jpg",
"images/photos/559/BK Ashvin503.jpg",
"images/photos/315/BK Palakshi406.jpg",
"images/photos/1901/IMG_0004.jpg",
"images/photos/952/952.JPG",
"images/photos/1414/Shivika_Ghaziabad.photoJPG.JPG",
"images/photos/1049/1049.JPG",
"images/photos/1773/Ratikant-Haryana.JPG",
"images/photos/1060/1060.JPG",
"images/photos/2121/archana1.JPG",
"images/photos/2192/chetan.jpg",
"images/photos/2246/10.jpg",
"images/photos/1712/SP_A0101.jpg",
"images/photos/1791/ScannedImage.jpg",
"images/photos/1715/30112008213.jpg",
"images/photos/1287/1287 Pabitrabhai.JPG",
"images/photos/2127/aanchal1 (2).JPG",
"images/photos/2225/anuja.jpg",
"images/photos/564/BK Raghavendra484.jpg",
"images/photos/505/BK hansraj441.jpg",
"images/photos/10/Deep_Passport_Studio.jpg",
"images/photos/1508/Suraj.JPG",
"images/photos/1008/1008.JPG",
"images/photos/896/896.JPG",
"images/photos/1224/1224.JPG",
"images/photos/1150/1150.JPG",
"images/photos/2105/ramakant1.JPG",
"images/photos/1513/Anup.JPG",
"images/photos/947/947.JPG",
"images/photos/226/BK Narayan304.jpg",
"images/photos/1523/Ashwani-Maha.JPG",
"images/photos/306/BK Chintan396.jpg",
"images/photos/1339/1339.JPG",
"images/photos/1509/Chetan.JPG",
"images/photos/1123/mvs4.bmp",
"images/photos/1123/mvs3.jpg",
"images/photos/412/BK Smita 252.jpg",
"images/photos/1768/Surya.JPG",
"images/photos/44/BKGhanshyam 216.jpg",
"images/photos/1767/Rakesh-Haryan.JPG",
"images/photos/1799/20092008221.jpg",
"images/photos/900/900.JPG",
"images/photos/1850/BMR.jpg",
"images/photos/1578/241220091015.jpg",
"images/photos/1842/Prem_Passport.jpg",
"images/photos/1853/4930.jpg",
"images/photos/1895/IMG0871A.jpg",
"images/photos/802/802.JPG",
"images/photos/2196/05 copy.jpg",
"images/photos/430/BK Ravi.JPG",
"images/photos/1907/tn.jpeg",
"images/photos/1482/bkgaurav.jpg",
"images/photos/70/BKSwanand 217.jpg",
"images/photos/1327/1327.JPG",
"images/photos/2107/padmini1.JPG",
"images/photos/1953/DSC01616.JPG",
"images/photos/478/BK anshul 37.jpg",
"images/photos/1909/Dinesh.Patel.png",
"images/photos/1039/1039.JPG",
"images/photos/403/Jyothi142.jpg",
"images/photos/1128/1128.JPG",
"images/photos/1584/Keshav-Punjab.JPG",
"images/photos/424/BK Savita244.jpg",
"images/photos/2231/sanju1.jpg",
"images/photos/209/BK Yogesh287.jpg",
"images/photos/1621/56Picture 001.jpg",
"images/photos/2197/nitin.jpg",
"images/photos/902/902.JPG",
"images/photos/1925/3443327521_59fce21185_m.jpg",
"images/photos/1125/1125.JPG",
"images/photos/1563/Jitendra-Rajstan.JPG",
"images/photos/281/BK Anup367.jpg",
"images/photos/922/922.JPG",
"images/photos/1722/DSC02637.jpg",
"images/photos/124/BK Hari116.jpg",
"images/photos/544/BK sandip472.jpg",
"images/photos/399/BK Rajnish146.jpg",
"images/photos/340/BK Pankaj342.jpg",
"images/photos/2158/Photo0114.jpg",
"images/photos/1/Mata_176x144.gif",
"images/photos/955/955.JPG",
"images/photos/1388/punnisoul.jpg",
"images/photos/1423/Kirti_Maharashtra.photoJPG.JPG",
"images/photos/282/BKDhananjya368.jpg",
"images/photos/2115/chetan ulhas1.JPG",
"images/photos/2007/gaurav_photo.jpg",
"images/photos/2124/raunak d bose1 (2).JPG",
"images/photos/433/BK Kuldeep429.jpg",
"images/photos/870/870.JPG",
"images/photos/140/BK Shyam139.jpg",
"images/photos/2059/Picture 007.jpg",
"images/photos/1006/1006.JPG",
"images/photos/933/933.JPG",
"images/photos/1777/Rupesh-Maharastra.JPG",
"images/photos/2103/smithasirish1.JPG",
"images/photos/2213/IMG_0549.JPG",
"images/photos/497/BK jayprakash436.JPG",
"images/photos/1035/1035.JPG",
"images/photos/1951/ScannedImage-2.jpg",
"images/photos/1248/1248.JPG",
"images/photos/551/BK Puru478.jpg",
"images/photos/288/BK Kavitha378.jpg",
"images/photos/2226/Bhavesh 001.jpg",
"images/photos/1998/guneet.jpg",
"images/photos/1209/1209.JPG",
"images/photos/494/BK Brajesh433.jpg",
"images/photos/1043/1043.JPG",
"images/photos/1560/Shyam.JPG",
"images/photos/1566/29756759.jpg",
"images/photos/504/BK keval440.jpg",
"images/photos/2/Mata_176x144.gif",
"images/photos/2/Empire Skype.png",
"images/photos/3/IMG_0267.jpg",
"images/photos/693/BK Gupta 564.jpg",
"images/photos/2129/nitant.jpg",
"images/photos/715/BK Shilpha 486.jpg",
"images/photos/715/BK Shilpha 486 .jpg",
"images/photos/1147/1147.JPG",
"images/photos/507/FARISHTA.JPG",
"images/photos/1588/Umesh-MH.jpg",
"images/photos/1093/1093.JPG",
"images/photos/953/953.JPG",
"images/photos/1843/My Photo.JPG",
"images/photos/1922/scan.jpg",
"images/photos/670/BK Alka549.jpg",
"images/photos/216/BK Deepak293.jpg",
"images/photos/2164/HEM.JPG",
"images/photos/1025/1025.JPG",
"images/photos/2133/jyoti.jpg",
"images/photos/120/BK Ramesh109.jpg",
"images/photos/906/ITC0906-Ashok(Sewadhari).JPG",
"images/photos/77/Priyanka Garg.jpg",
"images/photos/1589/Bhagyesh-MH.jpg",
"images/photos/1317/1317.JPG",
"images/photos/1215/1215.JPG",
"images/photos/984/984.JPG",
"images/photos/2128/sunil.jpg",
"images/photos/2126/charan.jpg",
"images/photos/1172/1172.JPG",
"images/photos/1567/kailash.jpg",
"images/photos/1026/1026.JPG",
"images/photos/102/BK.Ranjith KA.jpg",
"images/photos/1303/1303.JPG",
"images/photos/1734/Ramesh-TN 001.jpg",
"images/photos/1586/Pulak-Rajstan.JPG",
"images/photos/534/BK Alok Kumar462.jpg",
"images/photos/661/BK Manas546.jpg",
"images/photos/1522/Mohan-Nepal.JPG",
"images/photos/1632/tn64.jpg",
"images/photos/1478/Gorakhanath_Karnataka.JPG",
"images/photos/0/Suraj Dev Sahani.jpg",
"images/photos/1243/1243.JPG",
"images/photos/420/BK Sudhirta 246.jpg",
"images/photos/1570/Mohan-Rajstan.JPG",
"images/photos/292/BK Shakundala382.jpg",
"images/photos/892/892.JPG",
"images/photos/312/BK Nilesh403.jpg",
"images/photos/47/BK Ajay.JPG",
"images/photos/186/BK Deepak414.jpg",
"images/photos/2123/nikhil.jpg",
"images/photos/920/920.JPG",
"images/photos/2106/prashantkumar1.JPG",
"images/photos/1300/250px-Gita1.jpg",
"images/photos/1239/1239.JPG",
"images/photos/498/BK Jai437.jpg",
"images/photos/1845/NANTHINI.JPG",
"images/photos/184/BK Pankaj262.jpg",
"images/photos/932/932.JPG",
"images/photos/244/BK Ajay328A.jpg",
"images/photos/1148/1148.JPG",
"images/photos/40/BK Umesh210.jpg",
"images/photos/379/BK Ramesh166.jpg",
"images/photos/1858/sky.jpg",
"images/photos/491/BK Ashwini430.jpg",
"images/photos/1413/Ajay_1413 Photo.JPG",
"images/photos/1640/41564.jpg",
"images/photos/1708/Basanti-Maharastra.jpg",
"images/photos/252/BK Harminder335.jpg",
"images/photos/2193/vinita.jpg",
"images/photos/2005/Translite.jpg",
"images/photos/1229/1229.JPG",
"images/photos/1606/SK Chandra-Tamil Nadu.jpg",
"images/photos/2026/Picture 144.jpg",
"images/photos/179/BK Prashant188.jpg",
"images/photos/1775/Sandeep-UP.JPG",
"images/photos/1111/1111.JPG",
"images/photos/500/BKJagdish 219.jpg",
"images/photos/2053/DSC00450.JPG",
"images/photos/1338/1338.JPG",
"images/photos/1417/Shivika_Ghaziabad.photoJPG.JPG",
"images/photos/1318/1318.JPG",
"images/photos/253/BK Durgesh336.jpg",
"images/photos/1159/1159.JPG",
"images/photos/2096/Image0120.jpg",
"images/photos/1177/1177.JPG",
"images/photos/317/BK Manjunath408.jpg",
"images/photos/914/914.JPG",
"images/photos/2109/narayanshamrao1.JPG",
"images/photos/1857/sky.jpg",
"images/photos/552/BK Satish479.jpg",
"images/photos/1291/1291.JPG",
"images/photos/1793/1.jpg",
"images/photos/1797/sneh.JPG",
"images/photos/1826/RuAlone.jpg",
"images/photos/1409/DSC_5799_01.JPG",
"images/photos/1385/07032009571.jpg",
"images/photos/374/775554_f260.jpg",
"images/photos/374/775462_f520.jpg",
"images/photos/2055/MEDTD.jpg",
"images/photos/2056/mk.JPG",
"images/photos/401/Anusha144.jpg",
"images/photos/2224/mital.jpg",
"images/photos/1620/65Picture 001.jpg",
"images/photos/2131/kewal.jpg",
"images/photos/1023/1023.JPG",
"images/photos/388/BK Vandana 243.jpg",
"images/photos/1812/Nirmala PP.JPG",
"images/photos/532/BK Mohit460.jpg",
"images/photos/1223/1223.JPG",
"images/photos/786/786.JPG",
"images/photos/144/BK Mitesh181.jpg",
"images/photos/1174/1174.JPG",
"images/photos/1054/1054.JPG",
"images/photos/535/BK Ajay463.jpg",
"images/photos/1780/AKB.jpg",
"images/photos/1080/1080.JPG",
"images/photos/897/897.JPG",
"images/photos/1369/Karmjit sandhu.JPG",
"images/photos/2239/Birthday pictures 058.jpg",
"images/photos/290/BK Con380.jpg",
"images/photos/245/BK Durvesh328.jpg",
"images/photos/663/BK Sanjay457.jpg",
"images/photos/346/BK Roop319.jpg",
"images/photos/1516/V Gouri.JPG",
"images/photos/592/BK Vanita494.jpg",
"images/photos/1906/MM_.jpg",
"images/photos/1824/Image026.jpg",
"images/photos/1068/1068.JPG",
"images/photos/1285/1285.JPG",
"images/photos/437/BK Jeetesh212.jpg",
"images/photos/1208/1208.JPG",
"images/photos/1731/060220101337.jpg",
"images/photos/1904/mohit.jpg",
"images/photos/982/982.JPG",
"images/photos/332/775554_f260.jpg",
"images/photos/1363/face-light.jpg",
"images/photos/1363/250px-Gita1.jpg",
"images/photos/1732/Namita-Orissa.jpg",
"images/photos/113/BK AJAY KATARIA.jpg",
"images/photos/2118/ashokkumar1.JPG",
"images/photos/1988/ashutosh.jpg",
"images/photos/1146/1146.JPG",
"images/photos/1511/Jignesh.JPG",
"images/photos/1020/1020.JPG",
"images/photos/449/BK ALKESHKUMAR.jpg",
"images/photos/256/BK Rekha339.jpg",
"images/photos/1139/1139.JPG",
"images/photos/1176/1176.JPG",
"images/photos/1240/1240.JPG",
"images/photos/1019/1019.JPG",
"images/photos/904/904.JPG",
"images/photos/939/939.JPG",
"images/photos/1252/1252.JPG",
"images/photos/1314/1314.JPG",
"images/photos/1502/Neeraj-Delhi.JPG",
"images/photos/250/BK Murlidhar333.jpg",
"images/photos/1553/photo.jpg",
"images/photos/2119/aravindkumar1.JPG",
"images/photos/246/BK Archana329.jpg",
"images/photos/2050/2.JPG",
"images/photos/1507/vikas.JPG",
"images/photos/1517/Keyur Kumar.JPG",
"images/photos/311/BK Neeraj402.jpg",
"images/photos/1520/Harshada-Maha.JPG",
"images/photos/1211/1211.JPG",
"images/photos/291/BK Sivakumar381.jpg",
"images/photos/369/BKPreeti 174.jpg",
"images/photos/1405/SKP.JPG",
"images/photos/174/proxy[4].jpg",
"images/photos/1832/100_5288.jpg",
"images/photos/164/BK Rushabh 236.jpg",
"images/photos/1371/mamatha 1371.JPG",
"images/photos/1772/Jignesh-Gujrat.JPG",
"images/photos/307/kavita.jpg",
"images/photos/307/BK Kavitha378.jpg",
"images/photos/32/BK Mukesh 202.jpg",
"images/photos/1067/1067.JPG",
"images/photos/2125/kanchandurga1.JPG",
"images/photos/1009/1009.JPG",
"images/photos/61/BK.Akeshwar Singh Verma.jpg",
"images/photos/542/BK Neha470.jpg",
"images/photos/2102/swarupsuman1.JPG",
"images/photos/2112/kiransivasjirao1.JPG",
"images/photos/637/BK Omprakash 525.jpg",
"images/photos/652/BK Shobha537.jpg",
"images/photos/2198/Bhagawanlal.jpg",
"images/photos/1510/Ankit.JPG",
"images/photos/515/BK Deepak447.jpg",
"images/photos/1835/My photo.jpg",
"images/photos/4/ANU.JPG",
"images/photos/1175/1175.JPG",
"images/photos/1770/Hirlal-Gujrat.JPG",
"images/photos/1706/swati-up.jpg",
"images/photos/1711/01.jpg",
"images/photos/543/BK Bhushan471.jpg",
"images/photos/1716/ShivBabaBrahmaAmma.png",
"images/photos/1368/250px-Gita1.jpg",
"images/photos/1195/1195.JPG",
"images/photos/569/guna.bmp",
"images/photos/1774/PHTO0054.jpg",
"images/photos/263/BK Nirmal349.jpg",
"images/photos/992/992.JPG",
"images/photos/313/BK Somnath404.jpg",
"images/photos/709/BK Braja583.jpg",
"images/photos/883/883.JPG",
"images/photos/1149/1149.JPG",
"images/photos/1160/1160.JPG",
"images/photos/69/BK.Durga Keswani.jpg",
"images/photos/1069/1069.JPG",
"images/photos/981/981.JPG",
"images/photos/1221/1221.JPG",
"images/photos/436/BK BRAJA SUNDER220.jpg",
"images/photos/1521/Kedar-Maha.JPG",
"images/photos/1130/1130.JPG",
"images/photos/2020/IMG_1364.JPG",
"images/photos/331/Picture 005.jpg",
"images/photos/7/bkvenu.JPG",
"images/photos/1333/1333.JPG",
"images/photos/938/938.JPG",
"images/photos/655/BK Prakash 540.jpg",
"images/photos/935/935.JPG",
"images/photos/242/BK Rajesh326.jpg",
"images/photos/918/918.JPG",
"images/photos/967/967.JPG",
"images/photos/280/BK Prakash366.jpg",
"images/photos/1295/1295 Sachin bhai.JPG",
"images/photos/289/BKKashinath379.jpg",
"images/photos/2113/himanshu1.JPG",
"images/photos/723/BK Bhoosan593.jpg",
"images/photos/68/BK.Nitin Dattatraya Vmatkar.jpg",
"images/photos/1032/1032.JPG",
"images/photos/646/BK Sunil 535.jpg",
"images/photos/665/BK sandip472.jpg",
"images/photos/930/930.JPG",
"images/photos/298/BK Vinay389.jpg",
"images/photos/633/BK Vishvesh 521.jpg",
"images/photos/254/BK Devendra337.jpg",
"images/photos/1220/1220.JPG",
"images/photos/1587/Anita-Karnataka.JPG",
"images/photos/1977/12.jpg",
"images/photos/53/BKEresh375.jpg",
"images/photos/657/BK Krishna542 .jpg");


//$imagePaths=Array("images/photos/1366/Acer-eMachines-E725-.png");
foreach($imagePaths as $k=>$imgurl){

$filenamebase=rawurlencode(basename($imgurl));
$path1=basename($imgurl);
$basedir= basename(str_replace($path1,"",$imgurl));
$actualPath= $basedir."/".$filenamebase;

if(!is_dir('images/'."/photos1/".$basedir)){
mkdir('images/'."/photos1/".$basedir);
}

if(!file_exists('images/'."/photos1/".$basedir."/".basename($imgurl))){
copy("http://84.45.83.86/images/photos/".$actualPath, 'images/'."/photos1/".$basedir."/".basename($imgurl));
}


//echo 'http:/84.45.83.86/'.$imgurl;

}
?>